package design.factory.factory_method;

public class MainTest {
    public static void main(String[] args) {
        AbstractCarFactory carFactory = new WuLinRacingCarFactory();
        AbstractCar car = carFactory.newCar();
        car.run();

        carFactory = new WuLinVanCarFactory();
        car = carFactory.newCar();
        car.run();

    }
}
